package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.bean.Orders;
import com.itheima.bean.User;
import com.itheima.common.PageParam;
import org.springframework.core.annotation.Order;

/**
 * @Author: LiuBanXian
 * @Date: 2022/9/4  15:58
 * @description:
 */
public interface OrderService {
    /**
     * 分页查询
     * @param pageParam
     * @return
     */
    IPage<Orders> findPage(PageParam pageParam);

    /**
     * 提交订单
     * @param orders
     * @return
     */
    int add(Orders orders, User user);

    int update(Orders orders);
}

